package org.example.pojo;

public class Classes extends Major {
    private int classno = 0;
    private String classname = "";
    private int people = 0;
    private int period = 0;//

    public Classes() { }

    public Classes(int classno, String classname, int people, int period) {
        this.classno = classno;
        this.classname = classname;
        this.people = people;
        this.period = period;
    }

    public Classes(int departno, String name, int majorno, String majorname, int classno, String classname, int people, int period) {
        super(departno, name, majorno, majorname);
        this.classno = classno;
        this.classname = classname;
        this.people = people;
        this.period = period;
    }

    public int getClassno() {
        return classno;
    }

    public void setClassno(int classno) {
        this.classno = classno;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public int getPeople() {
        return people;
    }

    public void setPeople(int people) {
        this.people = people;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "classno=" + classno +
                ", classname='" + classname + '\'' +
                ", people=" + people +
                ", period=" + period +
                "} " + super.toString();
    }
}
